<?php
require 'vendor/autoload.php';

$log = new Monolog\Logger('name');
$log->pushHandler(new Monolog\Handler\StreamHandler('app.log', Monolog\Logger::NOTICE));

// $log->addWarning('Foo',['id'=>1]);

$log->addNotice('Foo',['id'=>1]);